Cucumber With Java by Paul Watson

Cucumber With Java by Paul Watson

Author:Paul Watson [Watson, Paul]
Language: eng
Format: azw3
Published: 2016-07-15T16:00:00+00:00


@RunWith(Cucumber.class)

@CucumberOptions(

features = "classpath:abc.feature",

glue = "classpath:org.softpost",

name = {"softpost"},

plugin = "html:target/selenium-reports"

)

public class MyTest

{

}

9. Passing parameters to steps

We can pass the parameters to the step methods from feature file as shown in below scenario. In below scenario, we have passed the name of website in Given step.

The main advantage of passing the parameters is that we can re-use same step method in different scenarios with different parameters.

@selenium

Feature: Simple feature



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.